﻿
Partial Class WebForm_Logout
    Inherits System.Web.UI.Page


    Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
        If Not IsPostBack Then
            Me.Logout()
        End If
    End Sub
End Class

Partial Class WebForm_Logout
    Private Sub Logout()
        clsAuth.ClearOrganizationAuth()
        clsAuth.ClearProgramAuth()
        FormsAuthentication.SignOut()

        Response.Redirect(FormsAuthentication.LoginUrl)
    End Sub
End Class
